package cn.itsource.hrm.util;

//登录用户上下文工具
public class UserContext {

    //从session中获取登录对象
    public static LoginInfo getLoginInfo() {
        return new LoginInfo(26L, "源码时代", 42L, "yhptest1");
    }

    //把登录对象放到session:
    public static void setLoginInfo(LoginInfo loginInfo) {
        System.out.println("登录对象设置到Session");
    }
}
